<%@ page import="com.wuming.caiwu.security.SecurityHander" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.Date" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<%
    long currentTime = new Date().getTime();
%>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>保险方案</title>
    <link rel="stylesheet" href="${allServerPath}static/layui/layui/css/layui.css">
    <link rel="stylesheet" href="${allServerPath}static/layui/css/formSelects-v4.css">
    <link rel="stylesheet" href="${allServerPath}static/css/insuranceScheme.css?t=<%=currentTime%>" media="all">
</head>
<body>
<div class="layui-row">
    <c:forEach items="${insurancePlans}" var="insurancePlan">
        <div class="layui-col-md3">
            <div class="scheme">
                <div class="schemeIcon">
                    <div class="schemeIconTxt">${insurancePlan.brand}</div>
                </div>
                <div class="message">
                    <p class="cost">${insurancePlan.planPrice}元</p>
                    <p class="name">${insurancePlan.planName}</p>
                    <ul class="mContent">
                        <c:forEach items="${insurancePlan.briefIntroductions}" var="item">
                            <li>
                                <span class="listStyle"></span>
                                <span class="listTit">${item}</span>
                            </li>
                        </c:forEach>
                    </ul>
                    <div hidden="hidden" id="insurancePlanId">${insurancePlan.id}</div>
                    <div class="mButton" name="button" onclick="toubao(${insurancePlan.id})">马上投保</div>
                </div>
            </div>
        </div>
    </c:forEach>
</div>

<script src="${allServerPath}static/layui/layui/layui.js"></script>
<script>
    layui.config({
        base: '${allServerPath}static/layui/build/js/'
    }).use(['jquery','layer'], function () {
    });

    function toubao(id) {
        parent.window.tab.tabAdd({
            'id': '1-2',
            'title': '保险详情',
            'icon': '',
            'url': '${allServerPath}web/router/insuranceDetail/' + id + '.htmls'//data.id
        });
    }
</script>
</body>
</html>
